﻿<Window x:Class="MontagsmalerApp.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Montagsmaler" Height="480" Width="853" Closed="Window_Closed" xmlns:my="clr-namespace:MontagsmalerApp" Loaded="Window_Loaded" IsTabStop="False">
	<DockPanel Width="Auto" Height="Auto" LastChildFill="True">
		<Menu DockPanel.Dock="Top" Name="MainMenu" IsMainMenu="True">
			<MenuItem Header="_Anwendung">
				<MenuItem Header="_Spiel beenden" Name="menuSpielBeenden" Click="menuSpielBeenden_Click" IsEnabled="{Binding SpielLaeuftGerade}" />
				<Separator />
				<MenuItem Header="_Zeichenbrett öffnen" Name="menuOeffneZeichenbrett" Click="menuOeffneZeichenbrett_Click" />
				<MenuItem Header="Teams ..." Name="menuTeams" Click="menuTeams_Click" />
				<MenuItem Header="Begriffe ..." Name="menuBegriffe" Click="menuBegriffe_Click" />
				<Separator />
				<MenuItem Header="_Anwendung verlassen" Name="menuBeendeAnwendung" Click="menuBeendeAnwendung_Click" />
			</MenuItem>
			<MenuItem Header="_Hilfe">
				<MenuItem Header="_Info" Name="menuInfo" Click="menuInfo_Click" />
			</MenuItem>
			<Menu.Background>
				<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
					<GradientStop Color="SteelBlue" Offset="1" />
					<GradientStop Color="#FFD2DFF2" Offset="0.23" />
				</LinearGradientBrush>
			</Menu.Background>
		</Menu>
		<Grid Name="gridMain" Background="#FFD8ECFF" Margin="0">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="300" />
				<ColumnDefinition Width="200" />
				<ColumnDefinition Width="219*" />
			</Grid.ColumnDefinitions>
			<StackPanel Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,15">
				<my:MontagsmalerWillkommenControl x:Name="montagsmalerWillkommenControl1" Margin="10" />
				<Button Height="36" Name="btnNeu" Width="160" Click="btnNeu_Click" IsEnabled="{Binding SpielKannGestartetWerden}" Content="Neues Spiel" FontFamily="Maiandra GD" FontSize="18" Margin="0,15" IsTabStop="False">
					<Button.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="White" Offset="0" />
							<GradientStop Color="White" Offset="1" />
							<GradientStop Color="#FF95BED8" Offset="0.534" />
						</LinearGradientBrush>
					</Button.Background>
				</Button>
				<Button Content="Team-Optionen" Height="36" Name="btnTeamsBearbeiten" Width="160" FontFamily="Maiandra GD" FontSize="18" Margin="0,0,0,25" Click="btnTeamsBearbeiten_Click_1" IsTabStop="False">
					<Button.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="White" Offset="0" />
							<GradientStop Color="White" Offset="1" />
							<GradientStop Color="#FF95BED8" Offset="0.534" />
						</LinearGradientBrush>
					</Button.Background>
				</Button>
			</StackPanel>
			<StackPanel Grid.Column="1" Margin="0,15">
				<Button Height="100" Name="btnNeueMalrunde" Width="100" IsEnabled="{Binding MalrundeKannGestartetWerden}" Click="btnNeueMalrunde_Click" IsTabStop="False">
					<Image Source="/MontagsmalerApp;component/Images/appearance-256.png"></Image>
				</Button>
				<StackPanel Orientation="Horizontal" Margin="0,15,0,0">
					<Button Height="33" Width="35" Margin="10,0" Name="btnWaehleSpieler" Click="btnWaehleSpieler_Click" IsTabStop="False" Padding="1" Panel.ZIndex="0">
						<Button.Triggers>
							<EventTrigger RoutedEvent="Button.GotFocus" >
								<BeginStoryboard>
									<Storyboard>
										<DoubleAnimation Storyboard.TargetName="btnWaehleSpieler" 
												Storyboard.TargetProperty="Opacity"
												From="1.0" To="0.5" Duration="0:0:2" DecelerationRatio="1" AutoReverse="True" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Button.Triggers>
						<Image Source="/MontagsmalerApp;component/Images/identity-256.png" Stretch="Uniform" ></Image>
					</Button>
					<Label Height="39" Name="lblAktuellerSpieler" HorizontalContentAlignment="Center" Content="{Binding AktuellerSpieler.Name}" HorizontalAlignment="Center" FontFamily="Maiandra GD" FontSize="18" />
				</StackPanel>
				<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,60,0,15">
					<Button Height="64" Name="btnFalsch" Width="64" IsEnabled="{Binding MalrundeLaeuftGerade}" Click="btnFalsch_Click" FontFamily="Maiandra GD" FontSize="40" FontWeight="Bold" IsTabStop="False">
						<Image Source="/MontagsmalerApp;component/Images/cnrdelete-all1-256.png"></Image>
					</Button>
					<Button Height="64" Name="btnRichtig" Width="64" IsEnabled="{Binding MalrundeLaeuftGerade}" Click="btnRichtig_Click" FontSize="40" FontWeight="Bold" FontFamily="Maiandra GD" Margin="12,0,0,0" IsTabStop="False">
						<Image Source="/MontagsmalerApp;component/Images/agt_action_success-256.png"></Image>
					</Button>
				</StackPanel>
				<Button Height="43" Name="btnMalrundeAbbrechen" Width="43" IsEnabled="{Binding MalrundeLaeuftGerade}" Margin="0,0,0,10"  Click="btnMalrundeAbbrechen_Click" IsTabStop="False">
					<Image Source="/MontagsmalerApp;component/Images/fileclose-256.png"></Image>
				</Button>
				<Button Height="43" Name="btnSpielstandAnzeigen" Width="43" IsTabStop="False" Click="btnSpielstandAnzeigen_Click">
					<Image Source="/MontagsmalerApp;component/Images/statistics.png"></Image>
				</Button>
			</StackPanel>
			<DockPanel Grid.Column="2" Margin="0,15,15,15">
				<Label Content="Malen Sie den Begriff:" Grid.Column="1" Name="lblBegriffUeberschrift" DockPanel.Dock="Top" FontFamily="Maiandra GD" FontSize="18" HorizontalAlignment="Center" />
				<Label Content="{Binding Meldung}" Grid.Column="1" Name="lblStatus" DockPanel.Dock="Bottom" HorizontalAlignment="Center" FontStyle="Italic" FontFamily="Maiandra GD" />
				<Label Content="{Binding AktuellerBegriff}"  Grid.Column="1" Name="lblBegriff" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></Label>
			</DockPanel>
		</Grid>
	</DockPanel>
</Window>
